package com.google.zxing.journeyapps.barcodescanner;

import ohos.eventhandler.EventRunner;

public class Util {
    public static void validateMainThread() {
        if (EventRunner.getMainEventRunner() != EventRunner.current()) {
            throw new IllegalStateException("Must be called from the main thread.");
        }
    }
}
